#include <stdio.h>

int w;

int main() {
	scanf("%d", &w);

	if (w%2==0) { 
		if ((w/2)>1)
			printf("YES\n");
		else
			printf("NO\n");
	}
	else
		printf("NO\n");
}
